package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.ShopService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController(value = "userShopController")
@RequestMapping("/user/shop")
public class ShopController {
	
	private final ShopService shopService;
	
	public ShopController(ShopService shopService) {this.shopService = shopService;}
	
	@GetMapping("/status")
	public Result<Integer> getShopStatus() {
		return shopService.getShopStatus();
	}
}
